package c.b.a.c.a.c;

import c.b.a.c.a.g.p;

public abstract class b implements Runnable {

    /* renamed from: b  reason: collision with root package name */
    private final p<?> f1957b;

    b() {
        this.f1957b = null;
    }

    public b(p<?> pVar) {
        this.f1957b = pVar;
    }

    /* access modifiers changed from: protected */
    public abstract void a();

    /* access modifiers changed from: package-private */
    public final p<?> b() {
        return this.f1957b;
    }

    public final void run() {
        try {
            a();
        } catch (Exception e) {
            p<?> pVar = this.f1957b;
            if (pVar != null) {
                pVar.d(e);
            }
        }
    }
}
